Skip to content

[rpc] Add Tracking to Subscriptions Made via HTTP for Unused Filter Eviction#18591

Open
onelapahead wants to merge 1 commit intoerigontech:mainfrom
kaleido-io:evictable-rpc-filters
Open

[rpc] Add Tracking to Subscriptions Made via HTTP for Unused Filter Eviction#18591
onelapahead wants to merge 1 commit intoerigontech:mainfrom
kaleido-io:evictable-rpc-filters

Conversation

@onelapahead
Copy link
Contributor

Then adds a missing feature from Geth: evicting stale filters via a background "timeout" loop. Similar to what was done in okx#777 but hopefully more efficient.

Meant to help avoid accumulate more Go heap for unused filters which only further hurt performance over time.

Also adds metrics for keeping track of the number of filters we have so we can confirm they do not grow indefinitely.

…viction

Signed-off-by: hfuss <hayden.fuss@kaleido.io>
@onelapahead
Copy link
Contributor Author

onelapahead commented Jan 11, 2026

We've been soaking this in our nodes with success on ensuring unused filters are evicted overtime. This PR is ready for review now.

@onelapahead onelapahead marked this pull request as ready for review January 11, 2026 14:18
@yperbasis yperbasis added the RPC label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants